package org.dxj.restaurantmanagementsystem.service;

import org.dxj.restaurantmanagementsystem.entity.User;

import java.io.IOException;
import java.util.List;

/**
 * @author Ding
 * @date 2019/11/23 17:51
 */
public interface IUserService {

    /**
     * 增加用户IService
     * @param user
     * @return boolean
     * @throws IOException
     */
    boolean insertUserService(User user) throws IOException;

    /**
     * 根据用户id删除用户信息IService
     * @param id
     * @return boolean
     */
    boolean deleteUserService(Integer id) throws IOException;

    /**
     * 根据用户id更改用户IService
     * @param user
     * @param id
     * @return boolean
     */
    boolean updateUserService(User user,Integer id);

    /**
     * 根据用户id查询用户信息IService
     * @param id
     * @return List<User>
     * @throws IOException
     */
    List<User> selectUserByIdService(Integer id) throws IOException;

    /**
     * 查询用户信息IService
     * @return List<User>
     * @throws IOException
     */
    List<User> selectUserService() throws IOException;
}
